package com.sx.micowell.framework.app

/**
 * @Author: YY
 * @Time: 2021/8/17
 * @Describe TODO
 */
open class AppConstant {

    companion object {
        // true-App false-设备
        var DEVICE_TYPE = false

        const val WX_APP_ID = "wx59646aeb50c5498f"

        // 退出登录
        const val EVENT_LOGIN_OUT = 0x100
        // 注册、修改密码成功
        const val EVENT_REGISTER_PWD_SUCCESS = 0x101
        // 完善信息成功
        const val EVENT_PERFECT_INFO_SUCCESS = 0x102
        // 添加训练计划成功
        const val EVENT_ADD_TRAIN_SUCCESS = 0x103
        // 切换登录
        const val EVENT_LOGIN_SWITCH = 0x104
        // 微信扫码登录（二维码）
        const val EVENT_WX_SCAN_CODE = 0x105
        // 设备绑定成功
        const val EVENT_DEVICE_BIND_SUCCESS = 0x106

    }

    object CacheKey{
        // 缓存有效期时长1天 数据刷新会重新刷新时长
        const val CACHE_SAVE_TIME_SECONDS = 86400
        const val CACHE_USER_INFO = "cache_user_info"

    }

}